home *** CD-ROM | disk | FTP | other *** search
/ Champak 83 / (Vol 83) My Disc.iso / Games / bee_game.swf / scripts / frame_22 / DoAction.as
Text File  |  2008-08-07  |  1KB  |  52 lines

  1. function init()
  2. {
  3.    pause_menu._visible = false;
  4.    isPaused = false;
  5.    stage_sound.stop();
  6.    if(suara)
  7.    {
  8.       stage_sound2.start(0,20000);
  9.    }
  10.    level = 3;
  11.    player._xscale = 130;
  12.    player._yscale = 130;
  13.    start_ani._visible = true;
  14.    completed_ani._visible = false;
  15.    start_ani.gotoAndPlay(1);
  16.    completed_ani.gotoAndStop(1);
  17.    modegame = 1;
  18.    nectarbar._alpha = 0;
  19.    webbar._alpha = 0;
  20.    timerkebal = 0;
  21.    diam = false;
  22.    diam2 = false;
  23.    jmlnectar = 0;
  24.    hpbunga = 20;
  25.    hpplayer = maxhplayer;
  26.    hppanel.gotoAndStop(hpplayer);
  27.    target = 6;
  28.    speed = 0;
  29.    topspeed = 5 + lvmove * 2;
  30.    accel = lvmove;
  31.    jumweb = 5;
  32.    jumbunga = 6;
  33.    jumpohon = 11;
  34.    jumlalat = 3;
  35.    time = 1200;
  36.    var _loc1_ = 1;
  37.    while(_loc1_ <= jumbunga)
  38.    {
  39.       bunga_init(_loc1_);
  40.       _loc1_ = _loc1_ + 1;
  41.    }
  42.    _loc1_ = 1;
  43.    while(_loc1_ <= jumweb)
  44.    {
  45.       web_init(_loc1_);
  46.       _loc1_ = _loc1_ + 1;
  47.    }
  48. }
  49. stop();
  50. init();
  51. onEnterFrame = looputama;
  52.